<!DOCTYPE html>
<html>
{include file="public/head" /}
<body class="zanpian-body">
<section class="content">
<div class="row">
<div class="col-md-12">
<div id="contents">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12" id="specialhtml" tid="{$tid|default='0'}" nid="{$nid|default='0'}" did="{$did|default='0'}">
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
              <div class="select-group-t w150 search m10 ">
                <select name="status" class="form-control select2 margin10" type="ajax-select" style="width:100%">
   <option value="{:url('index',array('nid'=>$nid,'tid'=>$tid,'uid'=>$uid,'sid'=>$sid,'usid'=>$usid,'view'=>$view,'stars'=>$stars,'status'=>$status,'lock'=>$lock,'continu'=>$continu,'isfilm'=>$isfilm,'player'=>$player,'url'=>$url,'wd'=>$wd,'tag'=>$tag,'pic'=>$pic,'prty'=>$prty,'weekday'=>$weekday,'vip'=>$vip,'type'=>$type,'order'=>$order,'limit'=>$limit))}">分类筛选</option>
{volist name=":F('_data/listvod')" id="vo"}<option value="{:url('index',array('nid'=>$nid,'tid'=>$tid,'uid'=>$uid,'cid'=>$vo.list_id,'sid'=>$sid,'usid'=>$usid,'view'=>$view,'stars'=>$stars,'status'=>$status,'lock'=>$lock,'continu'=>$continu,'isfilm'=>$isfilm,'player'=>$player,'url'=>$url,'wd'=>$wd,'tag'=>$tag,'pic'=>$pic,'prty'=>$prty,'weekday'=>$weekday,'vip'=>$vip,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="vo.list_id" value="$cid"}selected{/eq}>{$vo.list_name}</option>
{if isset($vo['son'])}{volist name="vo['son']" id="splist"}<option value="{:url('index',array('nid'=>$nid,'tid'=>$tid,'uid'=>$uid,'cid'=>$splist.list_id,'sid'=>$sid,'usid'=>$usid,'view'=>$view,'stars'=>$stars,'status'=>$status,'lock'=>$lock,'continu'=>$continu,'isfilm'=>$isfilm,'player'=>$player,'url'=>$url,'wd'=>$wd,'tag'=>$tag,'pic'=>$pic,'prty'=>$prty,'weekday'=>$weekday,'vip'=>$vip,'type'=>$type,'order'=>$order,'limit'=>$limit))}" {eq name="splist.list_id" value="$cid"}selected{/eq}>├ {$splist.list_name}</option>{/volist}{/if}
{/volist}
</select>
              </div>
              <form class="form-inline form-search nice-validator n-default m10" id="form-search" method="post">
                <div class="input-group">
                <input class="form-control" placeholder="请输入关键词搜索" type="text" name="wd">
                <div class="input-group-btn">
                  <button type="submit" class="btn btn-default ajax-post" title="普通搜索" form="#form-search"><i class="glyphicon glyphicon-search"></i></button>
                </div>            
              </div>  
              </form>                                                                                         


    <div class="tab-content">
              <form id="list" method="post">
                <table id="table" class="table table-striped table-bordered table-hover" style="margin-top: 0px;" width="100%">
                   <thead>
                    <tr>
                      <th style="text-align:center;vertical-align: middle;">
                      {eq name="orders" value="id desc"}<a href="{:url('index',array('nid'=>$nid,'tid'=>$tid,'uid'=>$uid,'cid'=>$cid,'sid'=>$sid,'usid'=>$usid,'view'=>$view,'stars'=>$stars,'status'=>$status,'continu'=>$continu,'isfilm'=>$isfilm,'player'=>$player,'url'=>$url,'wd'=>$wd,'tag'=>$tag,'pic'=>$pic,'prty'=>$prty,'weekday'=>$weekday,'vip'=>$vip,'type'=>'id','order'=>'asc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-up"></i></a>{else/}<a href="{:url('index',array('nid'=>$nid,'tid'=>$tid,'uid'=>$uid,'cid'=>$cid,'sid'=>$sid,'usid'=>$usid,'view'=>$view,'stars'=>$stars,'status'=>$status,'continu'=>$continu,'isfilm'=>$isfilm,'player'=>$player,'url'=>$url,'wd'=>$wd,'tag'=>$tag,'pic'=>$pic,'prty'=>$prty,'weekday'=>$weekday,'vip'=>$vip,'type'=>'id','order'=>'desc','limit'=>$limit))}" class="text-link sort ajax-url">编号 <i class="fa fa-angle-down"></i></a>{/eq}</th>
                      <th style="text-align:left;vertical-align: middle;">分类</th>
                      <th style="text-align:left;vertical-align: middle;">名称</th>
                      <th style="text-align:center;vertical-align: middle;width:18%">操作</th>
                    </tr>
                  </thead>                
               <tbody>
               {notempty name="list"}
               {volist name="list" id="vo"}
               <tr>
                 <td style="text-align:center;vertical-align: middle;">{$vo['vod_id']}</a></td>
                <td style="text-align:left;vertical-align: middle;">『<a href="{:url('index',array('cid'=>$vo['vod_cid'],'stars'=>$stars,'status'=>$status,'continu'=>$continu,'isfilm'=>$isfilm,'player'=>$player,'url'=>$url,'wd'=>$wd,'tag'=>$tag,'type'=>$type,'order'=>$order))}" class="text-link ajax-url">{:getlistname($vo['vod_cid'])}</a>』</td>
                <td style="text-align:left;vertical-align: middle;">{$vo.vod_name}</td>
                <td align="center">
                <a href="javascript:;" class="btn btn-facebook btn-xs addajax" id="{$vo.vod_id}_{$tid|default='0'}_{$vo.vod_id}_add_0_special_1"><i class="fa fa-plus-square"></i> 添加</a>
                  </td>
              </tr>
              {/volist}
                 {else/}<tr><td style="text-align:center;vertical-align: middle;" colspan="11" >抱歉，没有找到相关内容！</td></tr>{/notempty} 
            </tbody>
                </table>
              </form>
            </div>
            </div>
            </div>
            {gt name="list->lastPage()" value="1"}
           <div class="panel-page">
              <div class="pull-left panel-page-info hidden-xs"><span class="pagination-info">共{$list->total()}条 {$list->currentPage()}/{$list->lastPage()} </span><span class="page-list">每页显示 {$list->listRows()} 条</span></div>
              <div class="panel-page-url ajax-page">
               <ul class="pagination"> {$list->render()} <div class="panel-page-select pull-left"><select class="select2 ajax-select" data-url="{:url_page(request()->action(),request()->param(),1)}"><option value="10" {eq name="limit" value="10"}selected{/eq}>10 条/页</option><option value="20" {eq name="limit" value="20"}selected{/eq}>20 条/页</option><option value="30" {eq name="limit" value="30"}selected{/eq}>30 条/页</option><option value="40" {eq name="limit" value="40"}selected{/eq}>40 条/页</option><option value="50" {eq name="limit" value="50"}selected{/eq}>50 条/页</option><option value="99" {eq name="limit" value="99"}selected{/eq}>99 条/页</option></select></div><div class="panel-page-jump "><input type="input" name="page" id="page" min="1" value="{$list->currentPage()}" class="form-control"/><input type="button" value="跳 转" data-url="{:url_page(request()->action(),request()->param())}" class="btn btn-default ajax-jump" /></div></ul>
              </div>
            </div>
           <!-- /.panel-page --> 
            {/gt}

         </div>
         <!-- /.panel-body --> 
          <!-- /.nav-tabs-custom -->
        </div>
        
        </div>
        </section>
{include file="public/footer" /}
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();
				if ($("#specialhtml").size() > 0) {
					tid = $("#specialhtml").attr("tid");
					nid = $("#specialhtml").attr("nid");
					zanpian.api.relation(nid, tid, 0, 'show', 0, 'special', 1);
					$(document).on("click", ".addajax", function() {
						arr = $(this).attr("id").split("_");
						zanpian.api.relation(arr[0], arr[1], arr[2], arr[3], arr[4], arr[5], arr[6]);
						$(this).addClass('disabled').prop('disabled', false);
					})
				}	
});	
</script>
</body>
</html>
